import 'package:flutter/material.dart';
import 'package:flutter_swiper/flutter_swiper.dart';
import 'package:flutterroom/pages/home/info/home_room_list.dart';
import 'package:flutterroom/pages/home/info/info_item_wdiget.dart';
import 'package:flutterroom/pages/home/tab_index/index_navgator_item.dart';
import 'package:flutterroom/pages/home/tab_index/index_navigator.dart';
import 'package:flutterroom/pages/home/tab_index/index_recommond.dart';
import 'package:flutterroom/pages/home/widgets/common_swiper.dart';
import 'package:flutterroom/widgets/search_index/search_bar.dart';

class HomdeIndexPage extends StatefulWidget {
  HomdeIndexPage({Key key}) : super(key: key);

  @override
  _HomdeIndexPageState createState() => _HomdeIndexPageState();
}

class _HomdeIndexPageState extends State<HomdeIndexPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: SearcgBar(
        showLoaction: true,
        showMap: true,
        onSearch: (){
          Navigator.of(context).pushNamed("login");
        },
      ),backgroundColor: Colors.white,brightness: Brightness.light),
      body: ListView(
        children: <Widget>[
          CommonSwiper(),
          IndexNavigator(),
          IndexRecommnd(),
          Info(showTitle: true,),
        ],
      ),
    );
  }
}
